<%--
  Created by IntelliJ IDEA.
  User: jie
  Date: 2020/8/20
  Time: 9:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>商品增加</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/toastr/toastr.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/shop/css/shopAdd.css" />
    <script src="${pageContext.request.contextPath}/static/js/jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/static/toastr/toastr.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/static/js/Myjs.js"></script>
</head>
<body>
<form class="form-horizontal" method="post">
    <h3 align="center">商品新增</h3>
    <table align="center" id="table" class="text-center table table-responsive table-bordered table-striped">
        <tr>
            <td>
                <div class="input-group">
                    <div class="input-group-addon" ><span class="red">*</span>商品编码</div>
                    <input name="goodsId" hidden>
                    <input  type="text" class=" form-control" id="goodsId" disabled="disabled">
                    <span class="glyphicon" aria-hidden="true"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="input-group verification">
                    <div class="input-group-addon"><span class="red">*</span>商品名称</div>
                    <input name="name" type="text" placeholder="请输入商品名称" class="form-control">
                    <span class="glyphicon" aria-hidden="true"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="input-group verification">
                    <div class="input-group-addon"><span class="red">*</span>商品进价</div>
                    <input type="text" name="purprc" placeholder="请输入商品进价" class="form-control">
                    <span class="glyphicon" aria-hidden="true"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="input-group verification">
                    <div class="input-group-addon"><span class="red">*</span>商品类型</div>
                    <select name="type" class="form-control" id="type"></select>
                    <span class="glyphicon" aria-hidden="true"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="input-group verification">
                    <div class="input-group-addon"><span class="red">*</span>商品单位</div>
                    <select name="unitId" id="unitId" class="form-control">
                    </select>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="verification">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="red">*</span>价格</span>
                        <input type="text" name="price" placeholder="请输入商品售价" class="form-control" >
                        <span class="glyphicon" aria-hidden="true"></span>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="verification">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="red">*</span>商品类别</span>
                        <select name="categoryId" id="cgs" class="form-control"></select>
                        <span class="glyphicon" aria-hidden="true"></span>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="verification">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="red">*</span>供应商</span>
                        <select name="supplieId" id="supplies" class="form-control"></select>
                        <span class="glyphicon" aria-hidden="true"></span>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <button type="button" id="add" class="btn">提交</button>
                <a href="" class="btn btn-danger">重置</a>
            </td>
        </tr>
    </table>

</form>



<script src="${pageContext.request.contextPath}/shop/js/shopAdd.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>

